package data;

/**
 *
 * @author Michal Hanzlik, Tomas Jiran
 */
public class HodnoceniId {
    private long id_filmu;
    private long id_osoby;

    @Override
    public int hashCode() {
        return (int) (id_osoby + id_filmu);
    }

    @Override
    public boolean equals(Object object) {
        if (object instanceof HodnoceniId) {
            HodnoceniId otherId = (HodnoceniId) object;
            return (otherId.id_osoby == this.id_osoby) && (otherId.id_filmu == this.id_filmu);
        }
        return false;
    }
}